package models

import (
	"bytes"
	"os/exec"
)
func Backup() (string, error) {
	var cmd = exec.Command("docker", "exec","da7","mysqldump", "-uroot", "-p123456" ,"worker_transfer_informations")
	var out bytes.Buffer
	cmd.Stdout = &out
	err:=cmd.Run()
	if err!=nil{
		return "",err
	}

	return out.String(),nil
}
